package com.supersit.greensproject.activity;

import android.os.Bundle;

import com.supersit.greensproject.utils.AppManager;
import com.zhy.autolayout.AutoLayoutActivity;

/**
 * Created by cong on 2016/7/12.
 */
public class BaseActivity extends AutoLayoutActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //注入view和事件
        AppManager.getAppManager().addActivity(this);
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        AppManager.getAppManager().finishActivity(this);
    }
}
